package com.inter;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.entity.Dep;

@FeignClient(value="SPRINGCLOUD-PROVIDER")
public interface DepService2 {
	
	@RequestMapping(value="/{depno}",method=RequestMethod.POST)
	Dep queryDepByDepNo(@PathVariable("depno") Integer depno);
	
	@RequestMapping(value="/list",method=RequestMethod.GET)
	Object queryAll();
}
